/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package arraydependentstack.java;

/**
 *
 * @author mweya
 */
import arraydependentstack.java.Stack;
public class ArrayDependentStackJava {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
        Stack stack = new Stack<>(5);
        stack.push("Push 1");
        stack.push("Push 2");
        System.out.println(stack.pop());
        }
        catch (Exception e){
            System.err.println(e.toString());
        }
    }
    
}